using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Raster._MosaicDataset
{
    /// <summary>
    /// <para>Build Multidimensional Info</para>
    /// <para>Generates multidimensional metadata in the mosaic dataset, including information regarding variables and dimensions.</para>
    /// <para>在镶嵌数据集中生成多维元数据，包括有关变量和维度的信息。</para>
    /// </summary>    
    [DisplayName("Build Multidimensional Info")]
    public class BuildMultidimensionalInfo : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public BuildMultidimensionalInfo()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_mosaic_dataset">
        /// <para>Mosaic Dataset</para>
        /// <para>The input multidimensional mosaic dataset.</para>
        /// <para>输入多维镶嵌数据集。</para>
        /// </param>
        public BuildMultidimensionalInfo(object _in_mosaic_dataset)
        {
            this._in_mosaic_dataset = _in_mosaic_dataset;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Build Multidimensional Info";

        public override string CallName => "management.BuildMultidimensionalInfo";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_mosaic_dataset, _variable_field, _dimension_fields, _variable_desc_units, _out_mosaic_dataset, _delete_multidimensional_info.GetGPValue()];

        /// <summary>
        /// <para>Mosaic Dataset</para>
        /// <para>The input multidimensional mosaic dataset.</para>
        /// <para>输入多维镶嵌数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Mosaic Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_mosaic_dataset { get; set; }


        /// <summary>
        /// <para>Variable Field</para>
        /// <para><xdoc>
        ///   <para>The field in the mosaic dataset that stores the variable names and is used to populate a new field named Variable. If all rasters in the mosaic dataset represent the same variable, type the name of the variable, for example, Temperature.</para>
        ///   <para>If the Variable field does not already exist, an existing field or string value must be specified. If the Variable field exists, the tool will update the multidimensional information only.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>镶嵌数据集中用于存储变量名称并用于填充名为 Variable 的新字段的字段。如果镶嵌数据集中的所有栅格都表示同一变量，请输入变量的名称，例如 Temperature。</para>
        ///   <para>如果“变量”字段尚不存在，则必须指定现有字段或字符串值。如果变量字段存在，则该工具将仅更新多维信息。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Variable Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _variable_field { get; set; } = null;


        /// <summary>
        /// <para>Dimension Fields</para>
        /// <para><xdoc>
        ///   <para>The fields in the mosaic dataset that store the dimension information and are used to populate a new field named Dimensions.</para>
        ///   <para>If the Dimensions field already exists, the tool will update the multidimensional information only.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>镶嵌数据集中用于存储维度信息并用于填充名为 Dimensions 的新字段的字段。</para>
        ///   <para>如果维度字段已存在，则该工具将仅更新多维信息。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Dimension Fields")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _dimension_fields { get; set; } = null;


        /// <summary>
        /// <para>Variable Info</para>
        /// <para>Specify additional information about the Variable field.</para>
        /// <para>指定有关“变量”字段的其他信息。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Variable Info")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _variable_desc_units { get; set; } = null;


        /// <summary>
        /// <para>Mosaic Dataset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Mosaic Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_mosaic_dataset { get; set; }


        /// <summary>
        /// <para>Delete Multidimensional Info</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Delete Multidimensional Info")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _delete_multidimensional_info_value _delete_multidimensional_info { get; set; } = _delete_multidimensional_info_value._false;

        public enum _delete_multidimensional_info_value
        {
            /// <summary>
            /// <para>DELETE_MULTIDIMENSIONAL_INFO</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DELETE_MULTIDIMENSIONAL_INFO")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>NO_DELETE_MULTIDIMENSIONAL_INFO</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("NO_DELETE_MULTIDIMENSIONAL_INFO")]
            [GPEnumValue("false")]
            _false,

        }

        public BuildMultidimensionalInfo SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}